<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
		<html>
		<head>
		<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
		<title>RegexMatches</title>
		<META HTTP-EQUIV="EXPIRES" CONTENT=0>
		<link rel="stylesheet" href="../../../../docs.css">
		</head>
		<body>
		
<br>
<h1>Io Reference</h1>
<br><br><br>
<br><br><br>
<a class='column' href='../../index.html'>Parsers</a>
&nbsp;&nbsp;<font color=#ccc>/</font>&nbsp;&nbsp;
<a class='column' href='../index.html'>Regex</a>
&nbsp;&nbsp;<font color=#ccc>/</font>&nbsp;&nbsp;
<b>RegexMatches</b>
<br><br><br>
<br><br><br>
<table border=0 cellspacing=0 style="margin-left:8em; width:40em; line-height:1.2em;">
<tr>
<td align=right></td>
<td></td>
<td>A regular expression match iterator.
</td></tr>
<tr><td colspan=3>&nbsp;</td></tr>
<tr><td colspan=3>&nbsp;</td></tr>
<tr><td colspan=3>&nbsp;</td></tr>
<tr>
<td align=right>
</td>
<td></td>
<td>
<hr align=left color=#ddd height=1>
<br><br>
<a name="RegexMatches-all"></a><b>
all
</b>
<p>
<div class=slotDescription>
Returns a list containing all matches in the string.
</div>
<a name="RegexMatches-allowEmptyMatches"></a><b>
allowEmptyMatches
</b>
<p>
<div class=slotDescription>
Tells the receiver to allow zero length matches. Empty matches are allowed by default.
	Returns self.
</div>
<a name="RegexMatches-allowsEmptyMatches"></a><b>
allowsEmptyMatches
</b>
<p>
<div class=slotDescription>
Returns true if the receiver allows empty matches, false if not.
</div>
<a name="RegexMatches-anchored"></a><b>
anchored
</b>
<p>
<div class=slotDescription>
Like <code>next</code>, but will only match at the current search position.
</div>
<a name="RegexMatches-disallowEmptyMatches"></a><b>
disallowEmptyMatches
</b>
<p>
<div class=slotDescription>
Tells the receiver not to allow zero length matches. Returns self.
</div>
<a name="RegexMatches-endPosition"></a><b>
endPosition
</b>
<p>
<div class=slotDescription>
Returns the index in the string where the receiver stops searching.
</div>
<a name="RegexMatches-foreach"></a><b>
foreach(value, message)
</b>
<p>
<div class=slotDescription>
Loops through the matches, assigns each match to <em>value</em>, and evaluates <em>message</em>.
	Returns the result of the last evaluation.
</div>
<a name="RegexMatches-foreachInterval"></a><b>
foreachInterval(value, matchMessage, nonMatchMessage)
</b>
<p>
<div class=slotDescription>
Like <code>foreach</code>, but takes an extra message that will be evaluated for the non-matching
	text before each match, and the non-matching text after the last match.
</div>
<a name="RegexMatches-last"></a><b>
last
</b>
<p>
<div class=slotDescription>
Returns the last match in the string.
</div>
<a name="RegexMatches-map"></a><b>
map(value, message)
</b>
<p>
<div class=slotDescription>
Like <code>foreach</code>, but the result of each evaluation of <em>message</em> is returned
	in a list.
</div>
<a name="RegexMatches-next"></a><b>
next
</b>
<p>
<div class=slotDescription>
Returns the next match, or nil if there is none.
</div>
<a name="RegexMatches-position"></a><b>
position
</b>
<p>
<div class=slotDescription>
Returns the search position as an index in the string.
</div>
<a name="RegexMatches-regex"></a><b>
regex
</b>
<p>
<div class=slotDescription>
Returns the Regex that the receiver uses for finding matching.
</div>
<a name="RegexMatches-replace"></a><b>
replace(name, message)
</b>
<p>
<div class=slotDescription>
Replaces each match in the string with the result of <em>message</em> and returns
	the resulting string.
</div>
<a name="RegexMatches-replaceAllWith"></a><b>
replaceAllWith(templateString)
</b>
<p>
<div class=slotDescription>
Same as:
	<pre>
	replace(match, match expandTo(templateString))
	</pre>
</div>
<a name="RegexMatches-setEndPosition"></a><b>
setEndPosition(anIndex)
</b>
<p>
<div class=slotDescription>
Sets the index in the string where the receiver should stop searching. It will be as
	if the string ends at that index. If <em>index</em> is nil, the end position will be set
	to the end of string.
	Returns self.

	<pre>
	Io> "funkadelic" matchesOfRegex("\\w+") setEndPosition(4) next string
	==> funk

	Io> "funkadelic" matchesOfRegex("\\w+") setEndPosition(nil) next string
	==> funkadelic
	</pre>
</div>
<a name="RegexMatches-setPosition"></a><b>
setPosition(aRegexOrString)
</b>
<p>
<div class=slotDescription>
Sets the search position to the given index in the string. Returns self.
</div>
<a name="RegexMatches-setRegex"></a><b>
setRegex(aRegexOrString)
</b>
<p>
<div class=slotDescription>
Sets the regex to find matches in. Returns self.
</div>
<a name="RegexMatches-setString"></a><b>
setString(aString)
</b>
<p>
<div class=slotDescription>
Sets the string to find matches in. Returns self.
</div>
<a name="RegexMatches-splitString"></a><b>
splitString
</b>
<p>
<div class=slotDescription>
Splits the string being matched against into pieces using the regex as the delimiter
	and returns the piece as a list of strings.
</div>
<a name="RegexMatches-string"></a><b>
string
</b>
<p>
<div class=slotDescription>
Returns the string that the receiver finds matches in.
</div>
</td>
</tr>
</table>
<br><br><br><br><br>
</body>
</html>
